{extend name="public/base" /}
{block name="style"}<link href="__LIB__/fileinput/css/fileinput.min.css" rel="stylesheet" /> {/block}
 {block name="body"}
 <div class="content-tabs">
	<ol class="breadcrumb">
		<li>
			<a href="{:url('index/index')}"><i class="fa fa-home"></i></a>
		</li>
		<li><strong>分销设置</strong></li>
	</ol>
</div>
<div class="row">
	<div class="col-sm-12">
		<div class="ibox float-e-margins">
			{include file="system/top"}
			<div class="ibox-content">
				<form id="myForm" class="form-horizontal m-t" method="post" action="{:url('distribution')}">				
				<div class="panel panel-default">
				<div class="panel-heading"> 设置分佣</div>
					<div class="panel-body">
					<div class="form-group">
						<label class="col-sm-3 control-label">分销开关：</label>
						<div class="input-group col-sm-4">
							<div class="switch">
                            <div class="onoffswitch">
                                <input type="checkbox" name="switch" checked="" class="onoffswitch-checkbox" id="example2">
                                <label class="onoffswitch-label" for="example2">
                                    <span class="onoffswitch-inner"></span>
                                    <span class="onoffswitch-switch"></span>
                                </label>
                            </div>
                      		</div>
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-3 control-label">成为合伙人费用：</label>
						<div class="input-group col-sm-3">
							<input type="text" id="partner" name="partner" value="{$settings['partner']}" number=true required=""  aria-required="true"  class="form-control" />
							<span class="input-group-addon">元</span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-3 control-label">代理/加盟商费用：</label>
						<div class="input-group col-sm-3">
							<input type="text" id="montw" name="montw" value="{$settings['montw']}" number=true required=""  aria-required="true"  class="form-control" />
							<span class="input-group-addon">元</span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-3 control-label">分佣层级：</label>
						<div class="input-group col-sm-3">
							<select name="level" name="partner"  class="form-control" >
								<option value="3">3</option>
								<option value="2">2</option>
								<option value="1">1</option>
							</select>
							<span class="input-group-addon">层</span>
						</div>
					</div>
				 </div>
				 </div>
				<div class="panel panel-default">
				<div class="panel-heading"> 加盟分佣设置</div>
					<div class="panel-body">
					<div class="form-group">
						<label class="col-sm-3 control-label">一级代理/加盟商加盟费分佣：</label>
						<div class="input-group col-sm-3">
							<input type="text" id="1_money" name="1_money" value="{$settings['1_money']}" number=true required=""  aria-required="true" class="form-control" />
							<span class="input-group-addon">元</span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-3 control-label">二级代理/加盟商加盟费分佣：</label>
						<div class="input-group col-sm-3">
							<input type="text" id="2_money" name="2_money" value="{$settings['2_money']}" number=true required=""  aria-required="true"  class="form-control" />
							<span class="input-group-addon">元</span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-3 control-label">三级代理/加盟商加盟费分佣：</label>
						<div class="input-group col-sm-3">
							<input type="text" id="3_money" name="3_money" value="{$settings['3_money']}" number=true required=""  aria-required="true"  class="form-control" />
							<span class="input-group-addon">元</span>
						</div>
					</div>
					</div>
				</div>
				<div class="panel panel-default">
				<div class="panel-heading"> 订单提成设置</div>
					<div class="panel-body">
					<div class="form-group">
						<label class="col-sm-3 control-label">订单总支付费率：</label>
						<div class="input-group col-sm-3">
							<input type="text" id="payfee" value="{$settings['payfee']}" name="payfee" number=true required=""  aria-required="true" name="ptagentcommission"  class="form-control" />
							<span class="input-group-addon">%</span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-3 control-label">平台订单提成：</label>
						<div class="input-group col-sm-3">
							<input type="text" id="ptagentcommission" value="{$settings['ptagentcommission']}" name="ptagentcommission" number=true required=""  aria-required="true" name="ptagentcommission"  class="form-control" />
							<span class="input-group-addon">%</span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-3 control-label">城市运营商订单提成：</label>
						<div class="input-group col-sm-3">
							<input type="text" id="cityagentcommission" value="{$settings['cityagentcommission']}" name="cityagentcommission" number=true required=""  aria-required="true" name="cityagentcommission"  class="form-control" />
							<span class="input-group-addon">%</span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-3 control-label">合伙人订单提成：</label>
						<div class="input-group col-sm-3">
							<input type="text" id="agentcommission"  value="{$settings['agentcommission']}" name="agentcommission"  number=true required=""  aria-required="true"  class="form-control" />
							<span class="input-group-addon">%</span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-3 control-label">一级代理/加盟商订单提成：</label>
						<div class="input-group col-sm-3">
							<input type="text" id="commission1" name="commission1"  value="{$settings['commission1']}" number=true required=""  aria-required="true" class="form-control" />
							<span class="input-group-addon">%</span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-3 control-label">二级代理/加盟商订单提成：</label>
						<div class="input-group col-sm-3">
							<input type="text" id="commission2" name="commission2" value="{$settings['commission2']}" number=true required=""  aria-required="true" class="form-control" />
							<span class="input-group-addon">%</span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-3 control-label">三级代理/加盟商订单提成：</label>
						<div class="input-group col-sm-3">
							<input type="text" id="commission3" name="commission3" value="{$settings['commission3']}" number=true required=""  aria-required="true" class="form-control" />
							<span class="input-group-addon">%</span>
						</div>
					</div>
					</div>
				</div>
				<div class="form-group">
						<div class="col-sm-4 col-sm-offset-3">
							<button class="btn btn-primary" type="submit"><i class="fa fa-save"></i> 保存</button>&nbsp;&nbsp;
						</div>
				</div>
				</form>
			</div>
		</div>
	</div>
</div>
{/block} {block name="script"}
<script src="__JS__/jquery.form.js"></script>
<script src="__LIB__/validate/jquery.validate.min.js"></script>
<script src="__LIB__/validate/messages_zh.min.js"></script>
<script src="__LIB__/validate/add_validate.min.js"></script>
<script src="__LIB__/fileinput/js/fileinput.min.js"></script>
<script src="__LIB__/fileinput/js/locales/zh.js"></script>
<script>

	$("#li-bar-distribution").addClass("active");
	$(function() {
		$("#myForm").validate({
			rules: {
				
			},
			messages: {
			
			},
			submitHandler: function(form) {
				ajaxForm();
			}
		});
	});
</script>
{/block}